const REQUEST = 'REQUEST'
const SUCCESS = 'SUCCESS'
const FAILURE = 'FAILURE'

function createRequestTypes(base) {
  return [REQUEST, SUCCESS, FAILURE].reduce((acc, type) => {
		acc[type] = `${base}_${type}`
		return acc
	}, {})
}

export const LOGIN = createRequestTypes('LOGIN');

export const ACTIVITY_INFO_CHANGE = 'ACTIVITY_INFO_CHANGE';
export const SET_MY_ACTIVITY_LIST = 'SET_MY_ACTIVITY_LIST';